<?php
// +----------------------------------------------------------------------
// | Quotes [未来可期]
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | Author: 夸克广告自助系统 https://support.qq.com/products/129921/ 作者QQ：79517721
// +----------------------------------------------------------------------
// | Date: 2022年3月5日
// +----------------------------------------------------------------------

error_reporting(0);
if (function_exists("set_time_limit")) {
    @set_time_limit(0);
}
define('SYSTEM_ROOT', dirname(__FILE__) . '/');
define('ROOT', dirname(SYSTEM_ROOT) . '/');
define('SYS_KEY', "QQ79517721");
define('SYS_VERSION', "1.0.0");

date_default_timezone_set('Asia/Shanghai');
$date = date("Y-m-d H:i:s");
session_start();

require   ROOT.'app/database.php';

$password_hash = "1234567890abcdfjgvasmlfgtwrqehjhgfdsz";

try {
    $ADDB = new PDO("mysql:host={$dbconfig['dbhost']};dbname={$dbconfig['dbname']};port={$dbconfig['dbport']}", $dbconfig['dbuser'], $dbconfig['dbpwd']);
} catch (Exception $e) {
    exit('链接数据库失败:' . $e->getMessage());
}


$ADDB->exec("set names utf8");
$rs = $ADDB->query("select * from ad_config");
while ($row = $rs->fetch()) {
    $config[$row['k']] = $row['v'];
}

require ROOT.'app/function.php';
require  ROOT.'app/member.core.php';
if (is_file( ROOT.'app/360safe/360webscan.php')) {//360网站卫士
    require_once(ROOT.'app/360safe/360webscan.php');
}



?>